package cn.darkhorse.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取天气相关配置
 *
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "weather")
public class WeatherConfig {
    private static  String key;

    private static String location;

    private static String lon;
    private static String lat;

    public static String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public static String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public static String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public static String getLat() {
        return lat;
    }

    public  void setLat(String lat) {
        this.lat = lat;
    }
}
